package com.example.myrecyclerview501zh.fragment;

/**
 * Created by 张浩 on 2017/5/25.
 */



        import android.content.Context;
        import android.os.Bundle;
        import android.support.annotation.Nullable;
        import android.support.v4.app.Fragment;
        import android.support.v7.widget.RecyclerView;
        import android.view.LayoutInflater;
        import android.view.View;
        import android.view.ViewGroup;


        import com.example.myrecyclerview501zh.R;
        import com.example.myrecyclerview501zh.adapter.MyAdapter;
        import com.example.myrecyclerview501zh.bean.ArticleBean;

        import java.util.List;

/**
 * Created by Administrator on 2017/5/23.
 */

public class ArticleFragment1 extends Fragment {
    private RecyclerView recyclerView;
    private RecyclerView.LayoutManager layoutManager;
    private MyAdapter myAdapter;
    private List<ArticleBean> list=null;
    private View view;
    private Context context;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        view=inflater.inflate(R.layout.articlefragment,container,false);
        context=view.getContext();

        return view;
    }
}
